/*
 * Powered By [fdlm]
 * Web Site: http://www.fdlm.cn
 * Since 2014 - 2015
 */

package com.sjyy.hospital.service;

import javacommon.base.BaseManager;
import javacommon.base.EntityDao;
import javacommon.page.Page;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.sjyy.hospital.dao.HospitalDao;
import com.sjyy.hospital.model.Hospital;
import com.sjyy.hospital.vo.query.HospitalQuery;

/**
 * @author cty email:caotianye@fdlm.cn
 * @version 1.0
 * @since 1.0
 */

@Service
@Transactional
public class HospitalManager extends BaseManager<Hospital,HospitalQuery,java.lang.Integer> implements HospitalService{
	
	@Autowired
	private HospitalDao hospitalDao;

	public EntityDao getEntityDao() {
		return this.hospitalDao;
	}
	
	@Transactional(readOnly=true)
	public Page findPage(HospitalQuery query) {
		return hospitalDao.findPage(query);
	}
	
}
